<%--
  @desc: AJAX会话过期重新登录界面
  @author: chenw
  @create: 2014-5-9 上午 9:55
--%>
<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<style type="text/css"> #re_login_form label { display: inline-block; width: 70px; text-align: right; }</style>
<div id="re_login_form" class="pageContent" style="width:410px;height:120px;">
    <form action="<c:url value='/profile/auth'/>" method="post" class="pageForm required-validate"
          onsubmit="return validateCallback(this,callbackForReLogin);">
        <div class="pageFormContent">
            <p>
                <label for="re_login_id">用户名：</label>
                <input id="re_login_id" type="text" name="loginId" class="required"/>
            </p>
            <p>
                <label for="re_login_pwd">密码：</label>
                <input id="re_login_pwd" type="password" name="password" class="required"/>
            </p>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">重新登录</button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>
<script type="text/javascript">
    function callbackForReLogin(resp) {
        if (resp && resp.succ) {
            alertMsg.info("登录成功！");
            $.pdialog.closeCurrent();
        } else {
            alertMsg.info(resp.msg + "!");
        }
    }
</script>